const obj = { a: 1, b: 2, c: 3 };

Object.keys(obj).forEach(key => {
    console.log(key, obj[key]);
});
console.log(Object.keys(obj));
